all:
	nvcc -o bin/reduce_base reduce_add_base.cu -lineinfo && sudo /usr/local/cuda/bin/ncu -f -o reduce_base --set full ./bin/reduce_base
	nvcc -o bin/reduce_index reduce_calc_index.cu -lineinfo && sudo /usr/local/cuda/bin/ncu -f -o reduce_calc_index --set full ./bin/reduce_index
	nvcc -o bin/reduce_unroll reduce_unroll.cu  -lineinfo && sudo /usr/local/cuda/bin/ncu -f -o reduce_unroll --set full ./bin/reduce_unroll
	nvcc -o bin/reduce_mem reduce_mem.cu -lineinfo && sudo /usr/local/cuda/bin/ncu -f -o reduce_mem --set full ./bin/reduce_mem
	nvcc -o bin/reduce_shuffle reduce_shuffle.cu -lineinfo && sudo /usr/local/cuda/bin/ncu -f -o reduce_shuffle --set full ./bin/reduce_shuffle

clean:
	sudo rm -rf bin/*
	sudo rm -rf *.ncu-rep